<?php

namespace App\Controller;

class IndexController extends AppBaseController
{
    private $adLogic;
    public function _initialize()
    {
        parent::_initialize();
        $this->adLogic = A('App/Ad', 'Logic');
    }

    public function index()
    {
        $adList = $this->adLogic->getHomeIndexBannerAd();
        $this->assign("adList", $adList);
        $this->display();
    }
}
